package com.longer.playhelper.presenter;


import android.os.Handler;

import com.longer.playhelper.modle.bean.Love;
import com.longer.playhelper.modle.biz.LoveBiz;
import com.longer.playhelper.view.iview.IFragmentMainView;

import java.util.List;

/**
 * Created by longer on 2017/4/13.
 */

public class Fragement_MainPresenter {

    private IFragmentMainView fragmentMenuView;

    private Love.ILoveBiz loveBiz;
    private Handler mHander = new Handler();

    public Fragement_MainPresenter(IFragmentMainView fragmentMenuView) {
        this.fragmentMenuView = fragmentMenuView;
        loveBiz = new LoveBiz();
    }


    public void setMenuLove() {
        fragmentMenuView.setmenu_love_cardhide();
        loveBiz.getLove(new Love.OnGetLove() {
            @Override
            public void Success(List<Love> list) {
                fragmentMenuView.setmenu_love(list);
                fragmentMenuView.setmenu_love_cardshow();
            }

            @Override
            public void Failed() {

            }
        });
    }



}
